package com.example.attempt.mapper;

import com.example.attempt.entity.Submit;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface SubmitMapper {
    public int getNowSubmit_id();
    public List<Submit> queryAll();
    public List<Submit> queryByHid(int hid);
    public List<Integer> queryBySid(String sid);
    public List<Integer> getSubIdByHid(int hid);
    public Submit queryBySubId(int submitId);
    public List<Submit> getHighSubmit(double threshold);
    public int addSubmit(Submit submit);
    public int deleteSubmit(int submitId);
    public int updateSimilarity(int submitId, double similarity);
    public int updateLink(int submitId,String link);
}
